package com.suixun.service.count.impl;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.suixun.dao.StdClickNumMapper;
import com.suixun.entity.StdClickNum;
import com.suixun.service.count.StdClickNumService;
import com.suixun.util.ObjectUtil;

@Service
public class StdClickNumServiceImpl implements StdClickNumService{

    @Resource
    private StdClickNumMapper stdClickNumMapper;

    @Override
    public void addClickNum(Integer type, Integer peopleId) {
        
        if(ObjectUtil.isNull(type, peopleId)){
            return ;
        }
        
        StdClickNum click = new StdClickNum();
        click.setCreateTime(new Date());
        click.setPeopleid(peopleId);
        click.setType(type);
        
        stdClickNumMapper.insert(click);
    }
    
    
}
